﻿using BCCommon.Extensions;
using BCCommon.OAEnums;
using BCDto.OA.TeamWorks.TaskRejectRecord;
using System;

namespace BCDto.OA.ApplyOrder
{
    /// <summary>
    /// 申请单审批记录信息
    /// </summary>
    public class ApplyOrderApprovalRecordDto
    {
        /// <summary>
        /// 任务记录编号
        /// </summary>
        public string TaskRecordNo { get; set; }
        /// <summary>
        /// 工作流活动实例Id
        /// </summary>
        public long WorkflowActivityInstanceId { get; set; }
        /// <summary>
        /// 业务类型
        /// </summary>
        public string BusinessType { get; set; }
        /// <summary>
        /// 业务类型名称
        /// </summary>
        public string BusinessTypeName { get; set; }
        /// <summary>
        /// 处理状态(待处理、已处理、被驳回、已挂起、已关闭)
        /// </summary>
        public OATaskHandleStatus HandleStatus { get; set; }
        /// <summary>
        /// 处理状态(待处理、已处理、被驳回、已挂起、已关闭)
        /// </summary>
        public string HandleStatusStr => this.HandleStatus.GetDescriptionString();
        /// <summary>
        /// 下发时间
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 任务开始日期
        /// </summary>
        public DateTime StartTime { get; set; }
        /// <summary>
        /// 任务当前步骤
        /// </summary>
        public int? CurrentlyStep { get; set; }
        /// <summary>
        /// 完成时间
        /// </summary>
        public DateTime? CompleteTime { get; set; }
        /// <summary>
        /// 任务执行人管理员Id
        /// </summary>
        public long? TaskExecuterAdminId { get; set; }
        /// <summary>
        /// 任务执行人管理员姓名
        /// </summary>
        public string TaskExecuterFullName { get; set; }
        /// <summary>
        /// 任务备注
        /// </summary>
        public string TaskRemark { get; set; }
        /// <summary>
        /// 驳回信息
        /// </summary>
        public TaskRejectRecordDto RejectInfo { get; set; }



    }
}
